/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * rGeneral.java
 *
 * Created on 10-feb-2012, 2:28:33
 */
package interfaz.Resultados;

import javax.swing.JDialog;

/**
 *
 * @author ariadna
 */
public class rGeneral extends javax.swing.JDialog {
    
    private JDialog porGeneral;
    private JDialog porReactivo;
    private JDialog porArea;
    /** Creates new form rGeneral */
    public rGeneral(java.awt.Dialog parent) {
        super(parent);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        botonPorArea = new javax.swing.JButton();
        botonPorReactivo = new javax.swing.JButton();
        botonGeneral = new javax.swing.JButton();
        botonRegresaMenu = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Resultados ");
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/interfaz/resources/NegotegiaIcono.png"))); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabel2.setText("Seleccione como desea visualizar los resultados:");
        jLabel2.setName("jLabel2"); // NOI18N

        botonPorArea.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonPorArea.setIcon(new javax.swing.ImageIcon(getClass().getResource("/interfaz/resources/area.png"))); // NOI18N
        botonPorArea.setText("Por Área");
        botonPorArea.setName("botonPorArea"); // NOI18N
        botonPorArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonPorAreaActionPerformed(evt);
            }
        });

        botonPorReactivo.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonPorReactivo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/interfaz/resources/pregunta.png"))); // NOI18N
        botonPorReactivo.setText("Por Reactivo");
        botonPorReactivo.setName("botonPorReactivo"); // NOI18N
        botonPorReactivo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonPorReactivoActionPerformed(evt);
            }
        });

        botonGeneral.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonGeneral.setIcon(new javax.swing.ImageIcon(getClass().getResource("/interfaz/resources/general.png"))); // NOI18N
        botonGeneral.setText("General");
        botonGeneral.setName("botonGeneral"); // NOI18N
        botonGeneral.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonGeneralActionPerformed(evt);
            }
        });

        botonRegresaMenu.setFont(new java.awt.Font("Tahoma", 1, 12));
        botonRegresaMenu.setText("Regresar al Menú ");
        botonRegresaMenu.setName("botonRegresaMenu"); // NOI18N
        botonRegresaMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonRegresaMenuActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(453, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(botonRegresaMenu, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1))
                .addGap(19, 19, 19))
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addComponent(jLabel2)
                        .addGap(76, 76, 76))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(45, 45, 45)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(botonPorArea, javax.swing.GroupLayout.PREFERRED_SIZE, 393, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(botonGeneral, javax.swing.GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE)
                                .addComponent(botonPorReactivo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
                .addContainerGap(190, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(15, 15, 15)
                        .addComponent(jLabel1)
                        .addGap(55, 55, 55))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel2)
                        .addGap(38, 38, 38)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(botonPorArea)
                .addGap(43, 43, 43)
                .addComponent(botonPorReactivo, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(50, 50, 50)
                .addComponent(botonGeneral, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(24, 24, 24)
                .addComponent(botonRegresaMenu, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(24, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void botonPorAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonPorAreaActionPerformed
    porArea = new rPorArea(this);
  setVisible(false);
  porArea.setLocationRelativeTo(this);
  porArea.setVisible(true);
}//GEN-LAST:event_botonPorAreaActionPerformed

private void botonPorReactivoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonPorReactivoActionPerformed
// TODO add your handling code here:
  porReactivo = new rPorReactivo(this);
  setVisible(false);
  porReactivo.setLocationRelativeTo(this);
  porReactivo.setVisible(true);
}//GEN-LAST:event_botonPorReactivoActionPerformed

private void botonGeneralActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGeneralActionPerformed
  porGeneral = new rPorGeneral(this);
  setVisible(false);
   porGeneral.setLocationRelativeTo(this);
   porGeneral.setVisible(true);
}//GEN-LAST:event_botonGeneralActionPerformed

private void botonRegresaMenuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonRegresaMenuActionPerformed
    setVisible(false);
    getOwner().setVisible(true);
}//GEN-LAST:event_botonRegresaMenuActionPerformed

private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
    setVisible(false);
    getOwner().setVisible(true);
}//GEN-LAST:event_formWindowClosing

    /**
     * @param args the command line arguments
     */
   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonGeneral;
    private javax.swing.JButton botonPorArea;
    private javax.swing.JButton botonPorReactivo;
    private javax.swing.JButton botonRegresaMenu;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    // End of variables declaration//GEN-END:variables
}
